package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DriverVehicleAssignmentsMapper;
import com.ruoyi.system.domain.DriverVehicleAssignments;
import com.ruoyi.system.service.IDriverVehicleAssignmentsService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-14
 */
@Service
public class DriverVehicleAssignmentsServiceImpl implements IDriverVehicleAssignmentsService 
{
    @Autowired
    private DriverVehicleAssignmentsMapper driverVehicleAssignmentsMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param assignmentId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public DriverVehicleAssignments selectDriverVehicleAssignmentsByAssignmentId(Long assignmentId)
    {
        return driverVehicleAssignmentsMapper.selectDriverVehicleAssignmentsByAssignmentId(assignmentId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param driverVehicleAssignments 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<DriverVehicleAssignments> selectDriverVehicleAssignmentsList(DriverVehicleAssignments driverVehicleAssignments)
    {
        return driverVehicleAssignmentsMapper.selectDriverVehicleAssignmentsList(driverVehicleAssignments);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param driverVehicleAssignments 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertDriverVehicleAssignments(DriverVehicleAssignments driverVehicleAssignments)
    {
        return driverVehicleAssignmentsMapper.insertDriverVehicleAssignments(driverVehicleAssignments);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param driverVehicleAssignments 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateDriverVehicleAssignments(DriverVehicleAssignments driverVehicleAssignments)
    {
        return driverVehicleAssignmentsMapper.updateDriverVehicleAssignments(driverVehicleAssignments);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param assignmentIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteDriverVehicleAssignmentsByAssignmentIds(Long[] assignmentIds)
    {
        return driverVehicleAssignmentsMapper.deleteDriverVehicleAssignmentsByAssignmentIds(assignmentIds);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param assignmentId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteDriverVehicleAssignmentsByAssignmentId(Long assignmentId)
    {
        return driverVehicleAssignmentsMapper.deleteDriverVehicleAssignmentsByAssignmentId(assignmentId);
    }
}
